import SnailBaseinfo from '@/views/snail/baseinfo';
import ClassGrade from '@/views/snail/class';
import EducationSchool from '@/views/snail/education/school';
import EducationMy from '@/views/snail/education/my';

import SnailSocialRead from '@/views/snail/social/read';

export default {
  path: '/snail',
  childRoutes: [
    {
      path: 'baseinfo',
      component: SnailBaseinfo,
      name: 'SnailBaseinfo',
      meta: { title: '基本信息' },
    },
    {
      path: 'SnailSocial',
      name: 'SnailSocial',
      meta: { title: '资源管理',subMenu: true  },
      childRoutes: [
        {
          path: 'read',
          component: SnailSocialRead,
          name: 'SnailSocialRead',
          meta: { title: '阅读区' },
        },
        {
          path: 'class',
          component: EducationSchool,
          name: 'SnailSocialRead',
          meta: { title: '班级教材' },
        }
      ]
    },
    {
      path: 'education',
      name: 'SnailEducation',
      meta: { title: '教学', subMenu: true },
      childRoutes: [
        {
          path: 'school',
          redirect: 'school/1',
          name: 'SnailEducationSchool',
          meta: { title: '学校', subNav: true },
          childRoutes: [
            {
              path: '1',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '智慧课堂' },
            },
            {
              path: '2',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '单词闯关' },
            },
            {
              path: '3',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '视频配音' },
            },
            {
              path: '4',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '真人对话' },
            },
            {
              path: '5',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '学校习题库' },
            },
            {
              path: '6',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: 'RAZ分级阅读' },
            },
            {
              path: '7',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '国家地理分级阅读' },
            },
            {
              path: '8',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '班级教材' },
            },
            {
              path: '9',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '阅读区' },
            },
            {
              path: '10',
              name: 'SnailEducationSchool1',
              component: EducationSchool,
              meta: { title: '公立教材' },
            },
          ],
        },
        {
          path: 'my',
          redirect: 'my/1',
          name: 'SnailEducationSchoolMy',
          meta: { title: '我的', subNav: true  },
          childRoutes: [
            {
              path: '1',
              name: 'EducationMy1',
              component: EducationMy,
              meta: { title: '课件' },
            },
            {
              path: '2',
              name: 'EducationMy2',
              component: EducationMy,
              meta: { title: '后台制作的教材' },
            },
            {
              path: '3',
              name: 'EducationMy2',
              component: EducationMy,
              meta: { title: '老师分享的内容' },
            },
          ],
        },
      ],
    },
    {
      path: 'class',
      name: 'SnailClass',
      component: ClassGrade,
      meta: { title: '班级' },
    },
  ],
};
